import 'package:fish_redux/fish_redux.dart';

enum ProfileAction {
  onChangeAvatar,
  onChangePassword,
  onChangeMobile,
  onChangeName,
  onChangeGander,
  onLogout,
  onDark,
  onDestroy,
  refresh
}

class ProfileActionCreator {
  static Action onChangeAvatar() {
    return Action(ProfileAction.onChangeAvatar);
  }

  static Action onChangePassword() {
    return Action(ProfileAction.onChangePassword);
  }

  static Action onChangeMobile() {
    return Action(ProfileAction.onChangeMobile);
  }

  static Action onChangeName() {
    return Action(ProfileAction.onChangeName);
  }

  static Action onChangeGander() {
    return Action(ProfileAction.onChangeGander);
  }

  static Action refresh() {
    return Action(ProfileAction.refresh);
  }

  static Action onLogout() {
    return Action(ProfileAction.onLogout);
  }

  static Action onDark() {
    return Action(ProfileAction.onDark);
  }

  static Action onDestroy() {
    return Action(ProfileAction.onDestroy);
  }
}
